﻿@model Bricks.Site.Models.SafetyPlanView

@{
    ViewBag.Title = "编辑安全预案";
    Layout = "~/Views/Shared/_UserPage.cshtml";
}

@*引入uEditor*@
<script type="text/javascript" charset="utf-8" src="/Res/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/Res/ueditor/ueditor.all.js"> </script>
<script type="text/javascript" charset="utf-8" src="/Res/ueditor/lang/zh-cn/zh-cn.js"></script>
<link rel="stylesheet" type="text/css" href="/Res/ueditor/themes/default/css/ueditor.css" />

<script>
    $(function () {
        $.MiniUEditorInit($("#hID").val(), "SafetyManagement/SafetyPlan/AbstractDescription", "abstractDescription", 620, 150);  //迷你加载
    });
</script>

<div class="frombox datagrid-body" style="padding-bottom: 5px;">
    <form id="safetyPlan-model" method="post">
        <table class="datagrid-btable" border="0" cellspacing="0" cellpadding="0">
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">预案名称</div>
                </td>
                <td class="td" colspan="5">
                    <div class="datagrid-cell">
                        <input name="PlanName" class="easyui-textbox" data-options="required:true" style="width:620px;" value="@Model.PlanName" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="rth">
                    <div class="datagrid-cell">发布日期</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="PublishTime" class="easyui-textbox" value="@Model.PublishTime" style="background:#eeeeee;" readonly />
                    </div>
                </td>
                <td class="th">
                    <div class="datagrid-cell">发布单位</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input id="publishOrgID" name="PublishOrgID" class="easyui-textbox" value="@Model.PublishOrgID" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">发布人</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="PublishUserName" class="easyui-textbox" style="background:#eeeeee;" value="@Model.PublishUserName" readonly />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">摘要说明</div>
                </td>
                <td class="td" colspan="5">
                    <div class="datagrid-cell">
                        <textarea id="abstractDescription" name="AbstractDescription" cols="57" rows="5" style="width:620px;">@Model.AbstractDescription</textarea>
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">附件</div>
                </td>
                <td class="td" colspan="5">
                    <div class="datagrid-cell">
                        @*<textarea name="Attachment" cols="57" rows="5" style="width:620px;">@Model.Attachment</textarea>*@
                        <a href='javascript:void(0)' class='easyui-linkbutton' onclick='$.Upload($("#hID").val(), "SafetyManagement/SafetyPlan/Attachment")' data-options='plain:true,iconCls:"icon-blue_lego"'>附件操作</a>
                    </div>
                </td>
            </tr>
        </table>
        <input id="hID" name="ID" type="hidden" value="@Model.ID" />
        <input id="hPublishUserID" name="PublishUserID" type="hidden" value="@Model.PublishUserID" />
    </form>
</div>
